<include file="../Public/header" />
<script>
var LANGUAGE_NAME = '{$lang}';
</script>
<link href="__PUBLIC__/themes/blue/layout.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/json2select.js"></script>

<link href="__PUBLIC__/js/kissy/themes/default/editor-min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/kissy/neweditor.js"></script>
</head><body>

<div id="container" style="width:100%;">
<form method="post" id="basic_setting" name="form" action="{:U('admin/Cms/doAddContent')}" enctype="multipart/form-data">
  <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form">
    <tr class="top">
      <td colspan="2" class="tit">添加文章</td>
    </tr>
    <tr>
      <td width="100" height="30" align="center" class="th" a>标题：</td>
      <td height="30" class="td"><INPUT NAME="title" TYPE="text" class="large bLeftrequire" size="92" /></td>
    </tr>
    <tr>
      <td width="100" height="30" align="center" valign="top" class="th">内容：</td>
      <td height="30" class="td"><textarea name="content" cols="100" rows="30" id="content"></textarea></td>
    </tr>
    <tr>
      <td width="100" height="30" align="center" class="th">分类：</td>
      <td height="30" class="td"><div id="category"></div></td>
    </tr>
    <tr>
      <td width="100" height="30" align="center" class="th">链接：</td>
      <td height="30" class="td"><INPUT NAME="url" TYPE="text" class="large bLeftrequire" size="50" />
        (当添加此链接后，点击文章标题跳转到此链接)</td>
    </tr>
    <tr>
      <td width="100" height="30" align="center" class="th">作者：</td>
      <td height="30" class="td"><INPUT TYPE="text" class="large bLeftrequire" NAME="author" value="" /></td>
    </tr>
    <tr>
      <td width="100" height="30" align="center" class="th" ></td>
      <td height="30" class="td"><INPUT TYPE="submit" value="添 加" class="button" /></td>
    </tr>
  </TABLE>
</form>
</div>
</body>
</html>
<script>
$(function(){
	E	=	KISSY.Editor( "content" );	
	
	var category_json={$category_json};
	$("#category").json2select(category_json,[{$vo.cate_tree}],'category');	
}); 
</script>